/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.om.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 字典项
 *
 * @author weiyj
 * @date 2023-02-24 13:53:35
 */
@Data
@TableName("om_o_dict_item")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "字典项")
public class OmODictItem  extends Model<OmODictItem> {

	/**
	 * id
	 */
	@TableId(type = IdType.AUTO)
	@Schema(description = "id")
	private Long id;

	/**
	 * 字典ID
	 */
	@Schema(description = "字典ID")
	private Long dictId;

	/**
	 * 字典标识
	 */
	@Schema(description = "字典标识")
	private String dictKey;

	/**
	 * 值
	 */
	@Schema(description = "值")
	private String value;

	/**
	 * 标签
	 */
	@Schema(description = "标签")
	private String label;

	/**
	 * 字典类型
	 */
	@Schema(description = "字典类型")
	private String type;

	/**
	 * 描述
	 */
	@Schema(description = "描述")
	private String description;

	/**
	 * 排序（升序）
	 */
	@Schema(description = "排序（升序）")
	private Integer sortOrder;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

	/**
	 * 删除标记
	 */
	@Schema(description = "删除标记")
	private String delFlag;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新时间")
	private LocalDateTime updateTime;


}
